<div id="chat" name="chat">
	<h2>Chat</h2>
        <p>Trenutno je {$activeUsers} članova on-line</p>
	<ul id="scrollbox">
            {foreach from=$shoutbox item='shout'}
		<li><span><a href="{$url}/?page=profil&clan_id={$shout.id}">{$shout.name}</a> </span>{$shout.message}<div>{$shout.date}</div></li>
            {/foreach}
	</ul>
	{if $userIsLogged}
	<form action="handlers/chatinput.php?{$querystring}&redirectUrl={$currentPage}" method="post">
		<textarea name="message" cols="" rows="2"></textarea>
		<input name="" type="submit" value="Pošalji" />
                <input name="username" type="hidden" value="{$user.username}" />
	</form>
	{else}
	<br />
	<h3>Morate biti ulogovani kako bi mogli da pošaljete poruku. Hvala.</h3>
	<br />
	<p><a class="red" href="#account_box">Prijavi se</a> | <a class="red" href="{$url}/?page=registracija">Registruj se</a></p>
	{/if}
</div>